package com.work.facade.impl;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import com.work.dao.TaskDAO;
import com.work.facade.TaskFacade;
import com.work.model.Task;

/**
 * The Class TaskFacadeImpl.
 *
 * @author "Mihai Roman"
 */
@Stateless
public class TaskFacadeImpl implements TaskFacade {
	
	@EJB
	private TaskDAO taskDAO;

	@Override
	public void save(Task task) {
		taskDAO.save(task);
	}

	@Override
	public void update(Task newTask) {
		taskDAO.update(newTask);
	}

	@Override
	public void delete(Task task) {
		taskDAO.delete(task);
	}

}
